Corrected jshint warnings in casper.js