How can I make my phone functional again & get rid of this jailbreak?

About a month or so ago, I jailbroke my iPhone on version iOS 9.1, and earlier today I factory reset my phone. It has been stuck on the apple logo and will sometimes get a purple screen and fade into black, and then it just repeats.
Connect it to iTunes and let iTunes download the latest iOS and restore it.

Original thread: https://forums.imore.com/threads/how-can-i-make-my-phone-functional-again-get-rid-of-this-jailbreak.375210/