fixed jshint failures