Javascript websocket connection does not trigger onopen function
Hi,

I set up everything as described in the Hello World example.

For the JS file, I copied/pasted this : 

```
var conn = new WebSocket('ws://localhost:8080');
conn.onopen = function(e) {
    console.log("Connection established!");
};
```
My issue is that the console log does not get triggered although I know the connection is established as I get the message from the PHP "onOpen" function in the console.