It should be good thing to prevent overwrite the name of the actual context where we init the undo.js.
Me was a problem, that its extend function overwrites the main window object name property.
There is a missing var keyword before name variable in the for loop.
Add missing var statement. Fixes #1