Replaces python test.py with node.js version

Taken from https://github.com/mozilla/pdf.js