added basic code to popup.js.