CB-5405: Update JS code to use URLs exclusively