Update popup.js

added line to disable element position update when the popup is hidden