Javascript Push Objects Into Arraylist Remove Java