javascript to show upsets