// Server-safe: a pure inline-script generator plus a