Separate UI code from HTML to ui.js
Ignore vim swap files