Make compatible with webpack and browserify

Fixes #101
Merge pull request #102 from appsforartists/master

Make compatible with webpack and browserify