modded excellentexport.js to run in node.js