Jshint errors resolved