JSlint'd a bunch of files and did some basic cleanups