title: Recaptcha form rendering in node.js
body: <p>I am using recaptcha in my site using node.js, express, jade </p>
  
  <p>code in express_test.js to render recaptcha html is </p>
  
  <pre><code>app.get('/', function(req, res) {
      var recaptcha = new Recaptcha(PUBLIC_KEY, PRIVATE_KEY);
  
      res.render('form', {
      layout: false,
      locals: {
          recaptcha_form: recaptcha.toHTML()
        }
     });
  });
  </code></pre>
  
  <p>form.jade is </p>
  
  <pre><code>form(method='POST', action='/')
     != recaptcha_form
          input(type='submit', value='Check Recaptcha')
  </code></pre>
  
  <p>recaptcha.toHTML function is </p>
  
  <pre><code>Recaptcha.prototype.toHTML = function() {
  var query_string = 'k=' + this.public_key;
  if (this.error_code) {
      query_string += '&amp;error=' + this.error_code;
  }
  
  var script_src = (this.is_secure ? "https://" : "http://") + SCRIPT_SRC + '?' + query_string;
  var noscript_src = (this.is_secure ? "https://" : "http://") + NOSCRIPT_SRC + '?' + query_string;
  
  return '&lt;script type="text/javascript" src="' + script_src + '"&gt;&lt;/script&gt;' +
         '&lt;noscript&gt;&lt;iframe src="' + noscript_src + '" height="300" width="500" ' +
         'frameborder="0"&gt;&lt;/iframe&gt;&lt;br&gt;&lt;textarea name="recaptcha_challenge_field" ' +
         'rows="3" cols="40"&gt;&lt;/textarea&gt;&lt;input type="hidden" ' +
         'name="recaptcha_response_field" value="manual_challenge"&gt;&lt;/noscript&gt;';
   };
  </code></pre>
  
  <p>when i run my server it does not render Recaptcha.prototype.toHTML function  why?? </p>