Ok so I've looked into how to restore an iDevice so that its not jailbroken anymore and everybody has elaborate processes with iTunes that sometimes don't work because Apple won't verify it. Can't you just use Settings > General > Reset > Erase All Content and Settings on the device itself? Shouldn't that unjailbreak everything simply? Please correct me if I'm wrong.