Update Popup.js

add setPosition and moveToCenter