Moved animation script into filter_documents.

This is a nicer approach, because the animation loop is packed in a nice
closure and just kills itself with the last frame.
Moved identical style and class attributes to the front.
Applied a nicer html indentation mode to #cuts.