title: Casperjs won't allow using external modules?
body: <p>I tried to figure out a memory leak issue in Phantom.js / Casper.js script and found this link</p>
  
  <p><a href="https://stackoverflow.com/questions/15723532/detect-node-js-javascript-memory-leak-in-code">Detect node.js/javascript memory leak in code</a></p>
  
  <p>The idea is to include heapdump module </p>
  
  <p><a href="https://github.com/bnoordhuis/node-heapdump" rel="nofollow noreferrer">https://github.com/bnoordhuis/node-heapdump</a></p>
  
  <p>But when I run <code>casperjs myapp.js</code> and it gave error that it cannot find this heapdump lib even though I installed it.</p>
  
  <p><code>var heapdump = require('heapdump');</code></p>
  
  <p>Is <strong>casperjs</strong> different from <strong>nodejs</strong>? </p>