Fixed various jshint issues