Modify Animation.prototype.advance