Fixing bug injected by blidly following jshint