node.js ify and set up server