Notes on object literals and constructors