Code from this repo:

https://github.com/sitepoint-editors/jsqrcode/

Described in this tutorial:

https://www.sitepoint.com/create-qr-code-reader-mobile-website/