binding function for Array.prototype.reverse.