fix history js