added server side node.js stuff