React Get Query String Javascript Substring Methods