cleaned with jshint