iframe support
support AMD and CommonJS
bugfix for AMD support
Merge pull request #37 from dexteryy/master

iframe support, AMD and CommonJS support