fix for jshint errors