draw QRCode using JavaScript