React Get Query String Javascript Substring Negative Exponents