Adding new features to pdf.js library