extending confess.js for phantomjs