Well, basically you have to have an unlocked bootloader and custom recovery, witch you should have considering that you are rooted..
Now just download the odexed rom and boot.img and flash them using your recovery for rom and fastboot command for boot.img
However, If the only thing you did to your rom is root then you have the stock rom, just open SuperSU and tap "Full Unroot"
HTC ONE X endeavorU
16GB Orange UK
Stock WWE 4.2.2 - Rooted
HTC Sense :
1.36 Unlocked S-ON
CMW Touch 22.214.171.124
Additional Devices: iPhone 5 running iOS 7.0.2