Overriding a function in a Doctype's js in a custom app

Hello, I’m currently working on overriding a specific function in the JavaScript file of the ‘Goal’ DocType within the FRAPPE HR app. I’ve successfully implemented the override in my custom app using hooks and the public method. However, I’ve noticed that even though my override function is called first, the original function is still executed afterward. Is there a way to prevent the system from invoking the original function from my custom app ?