Refactored index.html to index.php