update Javascript variables for relay hostname