MZ How to adjust battle speed - where to inject code

This is my first post... I'm sorry if this is a redundant question. I found the answer in this forum post:

Where I need to inject this code somewhere:
def message_speed
return 20
end

I just don't know where to inject it. I've tried a few different places in rmmz_windows.js down in the Window_Battlelog coding, but I can't get it to work. Am I digging in the wrong file? I'm also utilizing all of the visustella cores and I'm not seeing any options in those either.
i was able to solve my own issue. i've seen quite a few threads looking into the same thing.

within visustellas battle core settings there is a message wait option that will control the overall "speed" of the battle.
Great! Just as a heads-up, I think that code you were trying out is for VX Ace or something, because it's not JavaScript. That would explain why you couldn't get it to work. 😅

Happy RPG Making!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-adjust-battle-speed-where-to-inject-code.145257/