function( l, // link node i // placeholder for image ){ // add newly created image i (currently without source) to link l.appendChild( i=new Image() ); // set image source to use the google chart api to create the QR-Code i.src='//chart.apis.google.com/chart?cht=qr&chs=99x99&chld=M|0&chl='+l.href; }