Added exampl.js with sync and async functions