Integrating phantomjs for e2e browser client testing