fixed the warnings from jshint