this one might be a good starting point for the phantomjs aspect...