Remove xmlhttprequest dependency