Refactored with_plugins target to reuse jquery target, avoiding duplication