React Get Query String Javascript Functions With Parameters