fixed jshint gotchas