Add .jshintrc, fix some stylistic issues