add index.js and readme