edited index.php

fixed more typos, syntax error