Remove debug code from index file