how to create list of objects in jquery