Add jshintrc and some minor changes