clean unuse code
modified index.html for test websocket