Various class/object utility functions for Node.js