Update index.html

Add socket.io cdn, change the order of making textarea empty.