Updated html page with socket emit. and added event listener for textarea.