Update popup.js

added comments