added auto page break and footer

Using jsPrint for invoice. See the invoice example