trying to get phantomjs running without stack overflow errors