How to create objects & their properties in Javascript