add loggin.js in main.html