Add phantomjs optional dependency.