js: simplification of object properties enumeration