Changed index so that app runs correctly on browser