Object Initializers in javascript