major overhaul of record and stackInfo structure to pave way for setInnerHTML and removechild recording, added document.write mediation