cleaning code for JSHINT