Update index.php

Add core functionality to script