Added jshint and fixed up formatting