ES6 promises

adding ES6 promises definition