add jsdoc blocks to main.js