Create PromiseMediator.js