continuing generalization

template.xml
- moved loading resources when javascript is available
- moved some styles to <pre> area

header1.html
- loading jquery / bootstrap references via js
- removed html script of jquery

footer1.html
- removed commented code
- removed some jquery css styling. it was moved to <pre> css