Js Array Add Elements In Arraylist Constructors