Object utility functions in JavaScript for node.js