I love the theory that he was supposed to be a Sith and working with Palpatine, but the character was so despised that they gave that up after Episode I. If it's true, I wish they would have stuck with it. Sith JarJar would have redeemed the goofiness, IMO.