Function utilities for JavaScript and Node.js