Clean up main index file