use main.js in bin