New promise recipe for checking page content with phantomjs