Plugin allows to build history functionality to your javascript (not to be confused with the history of the browser). Plugin records undo actions and then runs this actions on request. Logic of undo/redo action must be implemented by Your script.