index.js POO JS (plugin)