Fewer dependencies, fewer failures.
Why plain JS
For a small game site, frameworks add weight. Vanilla JS keeps performance predictable.
Structure
Organize by features: game loop, input, rendering. Keep modules small and testable.
Tooling
Use DevTools coverage and Lighthouse for quick audits.