Get Url Without Query String Javascript Substring