I couldn't find a javascript qr code generator.
But you could Consider using Google's API:
http://code.google.com/apis/chart/docs/gallery/qr_codes.html
http://togosoft.com/web/qrcode/qrcode.js
Update:
I just tried http://d-project.googlecode.com/svn/trunk/misc/qrcode/js/qrcode.js and seems fine to me. The only thing I did was increase the size and made it close the TDs properly, since self closing is not correct html. http://k3rmit.org/nopaste/759
I tested 3 different strings and used a App called QRReader on my iPhone to decode.
Update 2:
With var qr = new QRCode(10, QRErrorCorrectLevel.L);
I was able to fit 271 chars in the QRCode however might not be the most reliable setting.