issue #59 use window.location.origin for manifest url