MZ Visustella on add state do nothing?

I try to run a code when certain state is applied but not work for me, maybe my code is wrong... for example:

<JS On Add State>
target.StartAnimation(53);
</JS On Add State >

Is this code wrong for MZ?
Heya,

There's a space at the end of your second part closing the notetag command. Is that exactly how it is in the editor?

For example, you have

</JS on Add State >

when it should be </JS on Add State>

That might potentially be affecting things, at least from a glance!
Edit - try this instead:

<JS On Add State> $gameTemp.requestAnimation([target], 53); </JS On Add State>
@caethyril thank it work perfectly, i see is different from Mv.... I will need to learn Mz methods before continue working on the battle system... 🙂

Original thread: https://forums.rpgmakerweb.com/threads/visustella-on-add-state-do-nothing.148831/