[fix #1] Added ability to print pdf with math using phantomjs