The only free and comprehensive online etymological dictionary of the Spanish language
jo, so (Interjection) "darn!"

15th cent. Old Spanish xo. Originally an equestrian term to call one's horse to halt. Probably of expressive origin.