Fix new methods in promise.js and finishing with add leave and refresh branch