added alert in main.js