Angular Get Query Params Javascript Substring Until Character