added code for bad pdfs that won't compile (had this before, forgot to push it.) also updated views.py. querying works w/ js for querying compendium