javascript objects assignment completed