var client = require('twilio')('AC74758f409864491310b59e3f0b7b5f4e', '072d3327191638250a1f55315de3ae07');

/**
 * Static Server
 */
var static = require('node-static');
var fileServer = new static.Server('./');
require('http').createServer(function (request, response) {
    request.addListener('end', function () {
        fileServer.serve(request, response);
    }).resume();
}).listen(8080);

/**
 * Websocket Server
 */
var ws = require("nodejs-websocket");
var port = 8000;

//Create the websocket server, provide connection callback
var server = ws.createServer(function(conn) {
  console.log("New connection");

  // If we get text from the client, and echo it
  conn.on("text", function(str) {
    // print it out
    console.log("Received "+str)
    // Send it back (but more excited)
    conn.sendText(str.toUpperCase()+"!!!")

    if(str == "hello") {
      conn.sendText(str.toUpperCase()+"!!!");
      sendBody(str);
    } else if(str == "pizza") {
      conn.sendText(str.toUpperCase()+"!!!");
      sendBody(str);
    } else if(str == "sandwich") {
      conn.sendText(str.toUpperCase()+"!!!");
      sendBody(str);
    } else if(str == "burrito") {
      conn.sendText(str.toUpperCase()+"!!!");
      sendBody(str);
    }
  });

  // When the client closes the connection, notify us
  conn.on("close", function (code, reason) {
      console.log("Connection closed")
  });
}).listen(port);

console.log("Listening to port " + port);

function sendBody(str) {
  //Send an SMS text message
  client.sendMessage({
      to: '+18088889170', // Any number Twilio can deliver to
      from: '+16282226227', // A number you bought from Twilio and can use for outbound communication
      body: str // body of the SMS message
  }, function(err, responseData) { //this function is executed when a response is received from Twilio

      if (!err) { // "err" is an error received during the request, if any

          // "responseData" is a JavaScript object containing data received from Twilio.
          // A sample response from sending an SMS message is here (click "JSON" to see how the data appears in JavaScript):
          // http://www.twilio.com/docs/api/rest/sending-sms#example-1

          console.log(responseData.from); // outputs "+14506667788"
          console.log(responseData.body); // outputs "word to your mother."

      }
  });
}

@@ -742,17 +742,19 @@
 ceived %22
-+
+ + 
 str)%0A   
@@ -854,24 +854,60 @@
  %22hello%22) %7B%0A
+      console.log(%22hello %22  + str);%0A
       conn.s
@@ -989,24 +989,60 @@
  %22pizza%22) %7B%0A
+      console.log(%22pizza %22  + str);%0A
       conn.s
@@ -1127,24 +1127,63 @@
 andwich%22) %7B%0A
+      console.log(%22sandwich %22  + str);%0A
       conn.s
@@ -1229,32 +1229,32 @@
  sendBody(str);%0A
-
     %7D else if(st
@@ -1267,24 +1267,62 @@
 burrito%22) %7B%0A
+      console.log(%22burrito %22  + str);%0A
       conn.s

Add logs