I used $(document).html(), but that threw an error... is there a way to get everything?
$(document).html()
You could try:
$("html").html();
If you want to also capture the html tags you could concatenate them to the html like this:
function getPageHTML() { return "" + $("html").html() + ""; }