Create promiseApiExtension.js