fixed jshint panics