Update undo.js
Update undo.js

exposed canUndo and canRedo to simplify bindings
fixed issue where elements of undoBuffer were getting corrupted after restore

tonioloewald/Bind-O-Matic.js,tonioloewald/Bind-O-Matic.js