```js
// npm-underscore-test.js
var casper = require('casper').create();
var _ = require('underscore');

var urls = _.uniq([
  'http://google.com/',
  'http://yahoo.com/',
  'http://google.com/'
]);

casper.start().eachThen(urls, function(res) {
  this.thenOpen(res.data, function() {
    this.echo(casper.getTitle());
  });
});

casper.run();
```

```
$ npm install underscore
```

```
$ casperjs npm-underscore-test.js
Google
Yahoo! France
```

>  Also, node_module must be collocated to the script, it's a big limitation

Nope, I won't deal with nodejs installation path on people machines :x

> (is it the same for phantomjs ?)

Yes.