Noob implementation of async.js