index.php changed a bit

Cleaned up elements of the index.php page that cause loading on mobile
devices to slow up a bit.