Javascript library for running automated tests in phantomjs