The script was used, rather than client-side javascript, in order that it could be accessed by any browser in existence, including old and text-based browsers.
Cascading Style Sheets are used for layout purposes, but again the poems should be legible and accessible in old and text-based browsers.