Add cli.js and index.js for JSON extraction.