So thats what this bit is about - got it working, thanks a mil for taking the time to help out!
My plugin is basically a backend inventory manager - it handles adding items to the inventory, filtering and listing them by properties, incrementing specific properties (like when you are forging weapons), handling equiping an item, getting DEF (or other prop) a hero gets from all his equips, etc. Now that I'm happy with v1, just trying to simplify the way it works and how to debug it.
I could do all of this with dictionaries and arrays on construct but after 2 weeks doing it, I just looked at my event sheet and tought it was going to be impossible to maintain it or modify it. Its way easier to just do this sort of things with JS.