[javascript] How to list the properties of a JavaScript object?