Using JavaScript to have the track race.