text: 
  var app = module.exports = require('koa')();
  
  var html = `<html>
  
      <head>
          <meta charset="UTF-8">
          <title>A small test</title>
          <script src="//localhost:9091"></script>
      </head>
  
      <body>
          Page rendered at: <span id="demo"></span>
      </body>
      <script type="text/javascript">
          document.getElementById('demo').innerHTML = new Date();
      </script>
  
  </html>`;
  
  app.use(function *() {
      
      if(this.request.path === "/client") {
          this.body = html;
          return;
      }
      
      this.body = 'Koa says Hello!';
  });
  
  if(!module.parent){ 
      var port = process.env.PORT || (process.argv[2] || 3000);
      app.listen(port); 
      console.log('Application started on port ' + port);
  }
  