added linting with jshint, added .jshintrc, fixed linting errors and added use strict to each file