Add ui js and update index.html