React Get Query String Javascript Substring Syntax