added example for wrapping Node.js style callbacks