Js to hide endpoint string.