Replaced browser-request with xhr, removed promises.