Added overridable createUndoable function for constructing undoable html