Js Reduce Return Array Php Push Into Array Js W3schools