Lint-ified the code.

jslint.com is the place