Enable usage as a CommonJS module

fixes #92