Use correct ddp url

Internet Explorer doesn't have window.location.origin
Create ddp url using other available parts in window.location