title: Parse Cloud Code on Heroku: beforeSave error
body: <p>I migrated my Parse application to be hosted on Heroku instead so I can use NPM modules. One of the problems I have is I seem to have a problem with before save: </p>
  
  <pre><code>console.log('register b4 save', Parse.User);
  Parse.Cloud.beforeSave(Parse.User, function(req, res) {
    console.log('in b4 save');
    res.success(req.object);
  });
  </code></pre>
  
  <p>I get an error immediately after the 1st <code>console.log</code>: </p>
  
  <blockquote>
    <p><code>class name cannot be empty</code></p>
  </blockquote>
  
  <p>Whats wrong? </p>