Added jshintrc and fixed jshint warnings