1.3.1 (bug fix) Issue #3

Removed invalid HTML mark (extra divs) and rearranged template replacement to exclude the footer rather than wrapping it in a table.