ipmanager: fix history JS