Generate head in index.php from config class