How to modify the xmodule js file

I’m trying to show a modal whenever user submit a problem or click “next” button. The picture below is the js file control that action. It’s in /common/xmodule/modules/js. I’m trying to add some of my codes but it’s dont work. Can anyone give me some idea to do it!