'Fixed' some whitespace and semicolons

While semicolons are almost always optional in JS, most people say you should use them.
For more info on when and when not to use semicolons, see: 
http://stackoverflow.com/questions/2717949/when-should-i-use-a-semicolon-after-curly-braces