A phantomjs module used for waiting on predicates