fleshed out htmlUdpate fn in ma;