In frappe
You can override it in your custom app, so please check the reference: Overriding a JS file - #5 by NCP