Added a jshint config
Fixed several jshint complaints