Function overloading for Node.js