Corrected a few errors in script.js and index.html. The former was overwriting the native console object with a local console object (usually why variable global), and the connect() method was overwriting the onmessage function because of the order in which the statements were executing. Each function was also terminated by a semi-colon, which is largely unnecessary unless the function is anonymous and part of a statement (e.g. var x = function(x,y){ <something> };). For the latter, index.html, the input elements were missing an assignment operator, so the onclick attributes were not properly receiving the script function names.