Cleaning jshint errors