Remove debug function and pass the code through jshint