Chapter 9. External JavaScript
In most development projects, it is essential to organize our code into separate files or modules to facilitate readability and reuse. PhantomJS supports a module-loading mechanism that allows us to load and use external JavaScript. It uses the CommonJS API standard (http://wiki.commonjs.org).