Override doctype_js

I am trying to override js file.
I override the leave application doctype js. I added the file in hooks.

But it’s first execute the js condition in core file. then it add the js changes in my application.
Is it possible to override fully?