use phantomjs for e2e.
remove duplicate dependencies.