Support module export for node and browserify