Replace console.log with configurable logger
Allow a new PDF to be loaded into the existing viewer