added comments to the popup scripts file