Update Popup.js

limit popup in window