Added support for text input, and outputs the move as text. this allows copy-pasting moves over external chat programs. Organising stuff used by both UIs into uiUtils.js