refs #915 - Fix failing examples

Fixes some examples to be run with the `test` subcommand which would fail otherwise with:
```
Fatal: you can't override the preconfigured casper instance in a test environment.
Docs: http://docs.casperjs.org/en/latest/testing.html#test-command-args-and-options
```

Also updates some of the "globals" inline comments to satisfy jshint.