Fix console auth error when under SSL

Chrome (and I assume other browsers) will not allow a connection to an insecure web socket ("ws://") when under https.  I added a check for this in the JS that makes the connection.