JavaScript: constructor function ~> Object