make pdf.js initialization more robust on IE10/11