fix jshint and all the linting errors