How To Get Only Base Url In Javascript