added basic javascript for ui