fix main.js and updated README