Replaced jslint with jshint.
Fixed jshint warnings.