PDF plugin: use native HTML5 Promise

... instead of the promise implementation that used to be bundled
with PDF.js, but was removed for v1.0.277.

Solves #69.