Add main.js and update README