changes for jshint compliance