Update Array.prototype.indexOf
Refactor rename some variables