ntType' : 'application/json',
              'url'         : 'http://localhost:8888/',
              'data'        : JSON.stringify({"auth": "foobar", "db": 1, "command": ["SET", "SOME", "VALUE"]}),
              'success'     : function(response)
              {
                console.log(response);  
                document.write(JSON.stringify(response));
              }
            });
          })
        });
      </script>
   </head>
   <body>
        <button>make request</button>
   </body>
</html>