1. change javascript to javascripts.
2. separate the index to head.html, index.html, foot.html.