A recreation of the Current Javascript API in node.js