Added jshint. Fixed jshint errors