move html updates out of map lib