Array Object Creation In Javascript