Parse data-URIs instead of using XMLHttpRequest

Firefox is the only browser that loads data-URIs through XHR.
data-URIs cannot be loaded in Chrome, Opera, IE and Safari.

With this patch, data-URIs can be used in any browser.