Fixes the JS for the new shiny URLs.