adding a timeout to allow phantomJS to finish processing JS