jshint errors are fixed