add script in main.js