notes on main.js