It would be nice to be able to have some sections to output HTML code in the "header", "body" or at the end of the body after the HTML to add some JavaScript.
Something like
out.header << "<script...> ... </script>"
out.body << "<H3>...</H3>
out.bodyend << "<script...> createYahooCalendar(); </script>"