Converted phantomjs to automatic package