convert to jshint

Check .jshintrc for configuration