jshint fixes and removed debug nodes