Updated jspdf.js, with modifications to run in SSJS