A promise based interface to phantomjs