tabs -> spaces in all *.js files

And a few missing semicolons and extra whitespace while I was there.