attempt to correct jshint errors