Javascript Reduce Array Into Arraylist Trong