Updated JS and HTML for fixing URL params

Our URL params script was pulling in trailing slashes due to the way
that Chrome edits URLs from localhost.