Add semi colons
Clean up code using jshint.com