
express = require("express");
cim = require("../index");

var console = cim("APP");

app = express();

app.listen(8080, function(){
  console.log("now listening on port %d", 8080);
});


app.get("/", function(req, res) {
  var console = cim("root", console);
  console.log("Request");
  res.send('<a href=/sub>sub<a/>');
});

app.get("/sub", function(req, res) {
  var console = cim("sub", console);
  console.log("Request");
  res.send('<a href=/>root<a/>');
});

@@ -213,39 +213,38 @@
 q, res) %7B%0A  var 
-console
+logger
  = cim(%22root%22, c
@@ -246,39 +246,38 @@
 t%22, console);%0A  
-console
+logger
 .log(%22Request%22);
@@ -357,31 +357,30 @@
 es) %7B%0A  var 
-console
+logger
  = cim(%22sub%22
@@ -393,23 +393,22 @@
 ole);%0A  
-console
+logger
 .log(%22Re

Fix hoisting mistake in the example