NodeJS module to simply convert async function into synchronous one