fix xmlhttprequest path