Using Nodejs and phantomjs to convert html to pdf