rename on.js to main.js