Updating index to mock API when hosted from Github.