rewrite client side javascript code
add socket.io client lib to new ui