Optimist for phantomjs