updates jade2pdf function to wait for pdf to finish writing before reading
Merge pull request #1 from rockbot/improve-jade2pdf

updates jade2pdf function to wait for pdf to finish writing before reading