make the module requireable by node or browserify