finally got ContentEditable functioning correctly