added .jshintrc, cleaned up code.