Add jshintrc and tidied up a bit