<html>
  <head>
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script>
    <script src='js/swfobject.js'></script>
    <script src='js/FABridge.js'></script>
    <script src='js/web_socket.js'></script>
    <script>
      $(document).ready(function(){
        function debug(str){ $("#debug").append("<p>" +  str); };

        ws = new WebSocket("ws://localhost:8080/");
        ws.onmessage = function(evt) { $("#msg").append("<p>"+evt.data+"</p>"); };
        ws.onclose = function() { debug("socket closed"); };
        ws.onopen = function() {
          debug("connected...");
          ws.send("hello server");
          ws.send("hello again");
        };
      });
    </script>
  </head>
  <body>
    <div id="debug"></div>
    <div id="msg"></div>
  </body>
</html>
<html>
  <head>
    <script src='js/swfobject.js'></script>
    <script src='js/FABridge.js'></script>
    <script src='js/web_socket.js'></script>
    <script>
      function init() {
        function debug(string) {
          var element = document.getElementById("debug");
          var p = document.createElement("p");
          p.appendChild(document.createTextNode(string));
          element.appendChild(p);
        }

        ws = new WebSocket("ws://localhost:8080/");
        ws.onmessage = function(evt) { debug("Message: " + evt.data); };
        ws.onclose = function() { debug("socket closed"); };
        ws.onopen = function() {
          debug("connected...");
          ws.send("hello server");
          ws.send("hello again");
        };
      };
    </script>
  </head>
  <body onload="init();">
    <div id="debug"></div>
  </body>
</html>

Remove jquery dependency from example html page
Remove jquery dependency from example html page