MOved Array.prototype changes to functions