fix node.js support