added comments to main js file

added comments to main js file
added comments to main js file

added comments to main js file