fixed all jshint errors