Make request work with DOM Promises