Fix minor issue with QR generator javascript code