Javascript Get Url Without Query Params In Angular