QR scanner with js callback