MV Using Yanfly's Plugins, can I have Limited Skill Uses be based on the skill's Mastery level?

It's just as the title says. I have an alchemist character who can only throw a certain amount of grenades (a single skill) each combat, but I want that number to increase the more the alchemist uses it. I feel like the answer is somewhere with Javascript, but I'm not good with JS and I've had no luck trying to figure it out for myself. Is it possible? Are the two plugins even compatible?
So i went and looked over the plugins you mentioned, if i didn't mess anything up this should be how you can do it:
JavaScript:
<Custom Skill X Use Max>
  value = user.skillMasteryLevel(X);
</Custom Skill X Use Max>

Just make sure to replace "X" with the skill's id.
And before i forget this notetag can be used in one of the following places:
Actor, Class, Enemy, Weapon, Armor, State Notetags:

Original thread: https://forums.rpgmakerweb.com/threads/using-yanflys-plugins-can-i-have-limited-skill-uses-be-based-on-the-skills-mastery-level.164859/