Fixed url-decoding issue in script.js