Beginning documentation on main.js