in reply to Print large text into output file

Statement print OUT <<HEADS isn't terminated with a semicolon.

Update: Use CSS :nth-child instead of that ghastly Javascript.