Javascript Filter Object Array Creation In Java