some typo and added the phantomjs script for pdf