Add undo-tree and fix js2 indentation