templates: less verbose header
templates: <script> moved to footer and optimized images