Move PopUp JS to a new file