Update ui.js

I saw a typo and it bothered me a lot.