add ability to run through phantomjs so we can add dom methods