run client tests through phantomjs so travis ci works