CommonJSify the library