it is breaking around this code:
$jsObject_rsTITLE = new WDG_JsRecordset("rsTITLE");
it looks like you might be missing an include file for the JSRecordset object you were using. I removed those lines and the page loads.
You will have to re-apply the dynamic lists to populate them from the recordsets. The current migration code doesn't account for dynamic lists properly.