Ignore query and hash in script url

- Fix #4
More reliable iframe.onload polyfill