se from shellinabox
		window.addEventListener("message", function(message) {

			// Allow messages only from shellinabox
			if (message.origin !== url) {
				return;
			}

			// Handle response according to response type
			var decoded = JSON.parse(message.data);
			switch (decoded.type) {
			case "ready":
				// Shellinabox is ready to communicate and we will enable console output
				// by default.
				var message = JSON.stringify({
					type : 'output',
					data : 'enable'
				});
				iframe.contentWind