Updates partial url reference in js.