use javascript to generate qr code