Add phantomjs dev dependency.

[Works towards #46766613]