JavaScript: Objects and ECMAScript 5