now working with phantomJS