Fixed importing into commonjs environments

Ran into this while using this with browserify; should now be able to import correctly for cjs users