513d925be1
From 722 lines → 387 lines. Removed CV matcher logic (moved to cv-matcher.js) and i18n dictionary (moved to i18n.js). Keeps core functionality: - i18n initialization, language switching, translation helpers - Header/nav behavior - Contact and subscribe forms (with reCaptcha validation) - Cookie consent management - API health checks and configuration loading Additions: - JSDoc on all public functions with parameter/return types - Section block comments for navigability - Expose utilities on window.MyAi: t(), currentLang(), showFieldError(), clearFieldErrors(), isValidEmail(), extractApiError() - Cleaner separation of concerns between main.js, cv-matcher.js, i18n.js Load order: jQuery → i18n.js → main.js → cv-matcher.js (on cv-matcher page) Closes #31 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>