Ignore query and hash in script url

- Fix #4