widget.js pass window.location.href as "ref" param