Scanner.js: scan as JPG and display on the web page