use pdf.js distribution package
add support for pdf.js custom directory

useful for gem usage with optional parameters in request url