documented main.js