Ghostty for the web with xterm.js API compatibility

Commits on fix-copy-paste-bug