Ran jsHint on the .js files and fixed a few things