Change some modalpopup.js methods to protected for subclassing