Merge pull request #4 from dahlia/master

Separate UI code from HTML to ui.js
Merge pull request #5 from dahlia/master

Fix incorrect indentations
Use command-z instead of control-z on Mac
Redo for (control|command)-shift-z