improvements to the phantomjs recipe