white space changes

to avoid further confusion I went through all files and
cleaned up white spaces. Also removed trailing white spaces.

I also added jslint comments to some files.