var pubnub = PUBNUB.init({
	publish_key: 'pub-c-f1c1301a-f5c5-4038-8f35-a4ec81044399',
	subscribe_key: 'sub-c-2ed8a5ea-014a-11e4-b97b-02ee2ddab7fe'
});

pubnub.subscribe({
	channel: 'hasreon_chat',
	message: function (m) {
		bounce(m);
	}
});

var msgArray;

function bounce(recv) {
	msgArray = recv.split("~");
	//Separate the Username from the incoming command
	if (recv.charAt(0) == "/") {
		//if the recieved data is a command, then do the below, else ignore.
		//Note that commands will not support additional parameters
		if (msgArray[0] == "/begin") {
			pubnub.publish({
				channel: "hasreon_chat",
				message: ":get('fairfalcongate')" + "~" + msgArray[1]
			});
		}

		if (msgArray[0] == ("/n" || "/north" || "/N" || "/North" || "/NORTH")) {
			if (jsonFile.North !== "False") {
				pubnub.publish({
					channel: "hasreon_chat",
					message: ":get('" + jsonFile.North + "')" + "~" + msgArray[1]
				});
			} else {
				gamelog.innerHTML = gamelog.innerHTML + "<br /> <br /> <center><h2>You can't go that way</h2></center>";
			}
		}
		
		if (msgArray[0] == ("/s" || "/south" || "/S" || "/South" || "/SOUTH")) {
			if (jsonFile.South !== "False") {
				pubnub.publish({
					channel: "hasreon_chat",
					message: ":get('" + jsonFile.South + "')" + "~" + msgArray[1]
				});
			} else {
				gamelog.innerHTML = gamelog.innerHTML + "<br /> <br /> <center><h2>You can't go that way</h2></center>";
			}
		}
		
		if (msgArray[0] == ("/w" || "/west" || "/W" || "/West" || "/WEST")) {
			if (jsonFile.West !== "False") {
				pubnub.publish({
					channel: "hasreon_chat",
					message: ":get('" + jsonFile.West + "')" + "~" + msgArray[1]
				});
			} else {
				gamelog.innerHTML = gamelog.innerHTML + "<br /> <br /> <center><h2>You can't go that way</h2></center>";
			}
		}
		
		if (msgArray[0] == ("/e" || "/east" || "/E" || "/East" || "/EAST")) {
			if (jsonFile.West !== "False") {
				pubnub.publish({
					channel: "hasreon_chat",
					message: ":get('" + jsonFile.East + "')" + "~" + msgArray[1]
				});
			} else {
				gamelog.innerHTML = gamelog.innerHTML + "<br /> <br /> <center><h2>You can't go that way</h2></center>";
			}
		}
	}
}

@@ -962,38 +962,24 @@
 nnerHTML + %22
-%3Cbr /%3E %3Cbr /%3E 
 %3Ccenter%3E%3Ch2%3E
@@ -968,33 +968,33 @@
 ML + %22%3Ccenter%3E%3Ch
-2
+3
 %3EYou can't go th
@@ -994,33 +994,33 @@
 t go that way%3C/h
-2
+3
 %3E%3C/center%3E%22;%0A%09%09%09
@@ -1319,38 +1319,24 @@
 nnerHTML + %22
-%3Cbr /%3E %3Cbr /%3E 
 %3Ccenter%3E%3Ch2%3E
@@ -1325,33 +1325,33 @@
 ML + %22%3Ccenter%3E%3Ch
-2
+3
 %3EYou can't go th
@@ -1351,33 +1351,33 @@
 t go that way%3C/h
-2
+3
 %3E%3C/center%3E%22;%0A%09%09%09
@@ -1671,38 +1671,24 @@
 nnerHTML + %22
-%3Cbr /%3E %3Cbr /%3E 
 %3Ccenter%3E%3Ch2%3E
@@ -1677,33 +1677,33 @@
 ML + %22%3Ccenter%3E%3Ch
-2
+3
 %3EYou can't go th
@@ -1703,33 +1703,33 @@
 t go that way%3C/h
-2
+3
 %3E%3C/center%3E%22;%0A%09%09%09
@@ -2031,22 +2031,8 @@
  + %22
-%3Cbr /%3E %3Cbr /%3E 
 %3Ccen
@@ -2037,17 +2037,17 @@
 enter%3E%3Ch
-2
+3
 %3EYou can
@@ -2063,17 +2063,17 @@
 t way%3C/h
-2
+3
 %3E%3C/cente

Update backend.js