wip redo/undo implementation for a web based text editor