More spelling corrections. Change code comments with js to javascript in...

... a few places. Remove unnecessary whitespace from a few files.