_msg( obj ) {
        return obj['noun'] + "(" + obj['parm'] + ") is now " + obj['verb'];
      }

      console.log( "autobahn version: " + autobahn.version );

      var session;

      var wsuri;
      if (window.location.protocol === "file:") {
        wsuri = "ws://127.0.0.1:8080/ws";
      } else {
        wsuri = "ws://" + window.location.hostname + ":8080/ws";
      }

      window.onload = function() {

        console.log( "connecting to: " + wsuri );

        var connection = new autobahn.Connect