clone index.js to `dist/` for browser and cdn usage