jshint cleanup and removing extra console.log