Better index.php

Move instanciation and include to the top