add index.js and public