title: TypeError: Handlebars.registerHelper is not a function
body: <p>I am brand new to node and handlebars as of two days ago so bear with me.
  I am trying to use custom handlebars helpers but am not entirely sure where to put it.</p>
  
  <p>I keep getting "TypeError: Handlebars.registerHelper is not a function"</p>
  
  <p>Right now I have it in my server.js file. Not sure if this is correct.</p>
  
  <pre><code>var express  = require('express');
  var app      = express();
  var Handlebars  = require('express-handlebars');
  
  
  app.engine('handlebars', Handlebars({
      defaultLayout: 'main'
  }));
  
  app.set('view engine', 'handlebars');
  
  Handlebars.registerHelper("if", function(conditional, options) {
    if (options.hash.desired === options.hash.type) {
      options.fn(this);
    } else {
      options.inverse(this);
    }
  });
  </code></pre>