tried to implement xmlhttprequest in worker.js.