Start restructuring and documenting site.js