Allow query parameters in the script URL. Closes #1999.
Merge branch 'master' into jquery-ui