Use `.src` to get absolute URL as calculated by the browser.
`getUrlParameter` fixes as in http://stackoverflow.com/a/8764051/166524
Properly encode query string parameters.