Jshint fixes

Several JShint fixes.