Support optional arguments in node.js backend