Update modal_pane.js

Attempting to get tests to pass.