add a .jshintrc and fix #1