Call printTrail()

From the docs:

> Output the basic end-page trail including bottomscripts, reporttime, and
> debug stuff.
> 
> This should be called right before outputting the closing body and html tags.

Fixes the ScratchBlocks2 extension.

@jvvg I reverted to unix line endings for consistency with the other files.