Main.js run by index.html when ready