Added .jshintrc and fixed style issues