demo html refactoring
small refactoring
rename var undoCommands
doc: explain usage with RequireJS