html5 qr scanner and event trigger