React Get Query String Javascript Substring Vs Slicer