Update Array.prototype.flatten.js