Code cleanup via maximum awesome

My commit comments are wrong, there are newlines at the end of the files now which is [supposedly](http://stackoverflow.com/questions/5813311/no-newline-at-end-of-file) [good] (http://evanhahn.com/newline-necessary-at-the-end-of-javascript-files/). My editor did it automagically.

And I also cleaned up some stuff JSLint was complaining about (semicolons primarily)