Merge pull request #13 from bnadim/master

Bug fix for amd and minification compatibility
updated example