Update modal-popup.js

cast is no more.