added global vars to node.js