separate js and html
update client