Update ui.js

Progress my work, countdown it works a little bit right now.