Better usge of es6-promise