Update index.php

I made a few changes in order for this to work with the latest version of the Slim framework.