fixing jshint errors