Refactor head out to header.php

Refactor index.php by removing head to header.php.