Update UI in indexhtml

have working javascript in pilapse.js