Setup environment to run client tests in phantomjs