A PhoneGap plugin for detection of a headset (wired or bluetooth)