jquery deferred -> es6 promises