JS code reuse for plugins with items