fix exhaustion-related jshint errors