The cable tidy is the smartest way to look after your headphone cable.
It is specially designed so you can slip your own headphone cable into it. The cable tidy has a plastic housing with a spring-loaded action that allows you easily to store your cables and also adjust the length so you can listen to your music without getting tangled up wires.
For full details, simply follow the included instructions and avoid getting your wires crossed ever again.