add sample main.js in README.md