Spit css and javascript blocks.

see #585