Renaming plugin. Refactoring JS