fix jspdf undefined error