Add some cool features to JS ES6 Promise implementation.