Adding custom PluginJsException. Refactoring.