You have to connect the power line to an accessory power source. Should be one in the fuse box.
Will then work same as the radio.
I havent done it on a JK yet but there is usually picture of the connections, or at least the fuses, on the inside of the cover. If there is an emty one, connect wire to that connector, add a fuse and it should work.