refs #915 - fix failing examples

 + remove instantiation of casperjs when using `test` subcommand
 + update sample to reflect changed html-construct in used site
 + satisfy jshint by adding updating inline `global`comments

Closes #915