Added jshint and cleaned up the js files