removed console log
fixed jshint errors