added a logToPage option for log files to add a div to the pge for viewing.