install phantomjs; use beta agent