add main.js
improve README