refactored pdfclipviewer

includes a loadJsonTextbook function, changed how textbooks are
structured on page, created renderPdfElement.