add onNextTick function
implement basic compatibility of JetPromise and ES6 Promise