fixes for jshint