Node.js exports

Added module.exports to be used in Node.js