I don't understand why this needs to be wrapped in `casper.then`