Added CommonJS support (Issue #4)

Adds CommonJS support so that I can add CommonJS support to [draggabilly](https://github.com/desandro/draggabilly)