add js impls of new Array methods