bibdocfile: pdfjs previewer hot fix

* Fixes issues with files being loaded over http instead of https.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>