fix jshint remove undefined var