fixes for jshint errors