removed jshint warnings