Scanner.js: using Java applet instead of the scan app