Java Create New Object Array In Js Mdn Array Filter Php