JavaScript: instance variable using literal object definition