Added CommonJS support #4

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