Having a wee bit o trouble with the async paradigm?
pogoscript has a calling convention for async functions, taken from the Node.js fs module, many other libraries use it, but not all. The callback is called like this:
callback(error, result);
So
fs.readFile(filename, function (error, result) { ... });