JavaScriptLint validation changes

I have been a happy user of Prototype for some time now and have
recently been working with JavaScriptLint (http://www.javascriptlint.com)
to tighten up my source files. In doing so, I ran into a number of
minor issues with Prototype. This patch fixes them all and includes
a JavaScriptLint config file (jsl.conf) with almost all the options
turned on. The patch contains source file changes to tighten up all
problems illuminated by JSL using the config file included with
this patch.

I have regression tested the changes on Mac OS X 10.5.6 with
Ruby 1.8.6p114 against:

Safari Version 3.2.1 (5525.27.1)

Firefox Version 2.0.0.20

I hope this patch will be accepted and made part of the next
Prototype distribution so that users of lint programs such as
JavaScriptLint and JSLint will not encounter validation errors when
running against prototype.js. The slight increase in file size due
to additional characters (explicit curly braces, semicolons, etc)
can mostly be stripped out for production use with minimize
programs such as JSMin.