collect common JS utils in shared base.js
[↻] button to repeat a command
collect all output in preview terminal

simulate regular terminal UI