MV How to access a item's js variable created in Yanfly's Item Core

Hey everyone,
I'm using Yanfly's Item Core plugin alongside ICFSoft's Param Core (Link).

What I'm trying to do is access a js variable that was assigned by a independent item during the "<On Creation Eval>" tag so that my custom stat can increase in value based on the generated number.
What I have is:
JavaScript:
<On Creation Eval>
    var strBonus = Math.floor(Math.random()*5)+5;
</On Creation Eval>

And whenever I paste the following code right underneath that tag,
JavaScript:
<CUSTOM NPARAMS>
str = strBonus;
</CUSTOM NPARAMS>
Nothing happens. My knowledge of JS isn't that wide yet to know how to access such information.

This is all within the same item, and not trying to access it from skills and whatnot.
I'm not sure if it's possible, but it's worth to see if it is.
Instead of using var, which is a local scope declaration, assign the variable to the item object itself, so it can be called back from anywhere that has access to the item.

Code:
<On Creation Eval>
    item.strBonus = Math.floor(Math.random()*5)+5;
</On Creation Eval>

I'm not sure if there are any shortcuts in the ICFSoft plugin to get the variable from that item again easily like this.strBonus, or item.strBonus, since I don't use it. I'm sure the help documentation for that plugin can be of help there, though.
@ramza
Wow, that was surprisingly easy and fast, thank you! It was fairly critical to get this to work.

Yeah, if it comes down to that I'll try to analyze the documentation again.

Thread is solved!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-access-a-items-js-variable-created-in-yanflys-item-core.133960/