node.js function overloading