Javascript Add New Object To Array Of Pointers To Structures