Correcting a reference error `Array.prototype.removeAttr()`