Made requested changes

Array.prototype.slice.call -> Array.slice
Remove zipWithIndex since Arra.map passes i as the second param