server side javascript rendering with phantomjs