fixes to innerHTML post