     connection.onopen = function () {
              var msg = { id : -1, data : "" }
              connection.send("This is Fablish");
            };

            connection.onclose = function () {
                console.log('server gone.');
            };

            console.log("$(document).ready done. all set up.");

            function doit()
            {
                $('.ui.modal').modal('show');
            }

            function createRect(rect) {
                return { bottom : rect.botto