Triple check the ground on that side.
LM470 is the correct flasher for your 05, the EP27 will work but the signals will still work after the ignition is shut off.
Also a trailer wiring box isn't necessary for a TJ.
Hers - 2011 Dodge Durango Crew
Mine - 2003 Jeep Wrangler X
1998 Jeep Cherokee Classic