fix JS assets loading problem; improve copy-to-clipboard UX