Added main.js and updated README