Update popup.js

completed development.