[javascript] How do I enumerate the properties of a JavaScript object?