Universal module definition

Allow the script to be loaded in browser (global qrcode variable), in AMD or node.

Right now `require('qrcode-generator')` does nothing. This allows to use the library in more ways.