Rails asset pipeline compatibility for pdfjs