header split into index-header and header template and share commom-js template