On the chemistry of Jupiter's upper atmosphere