I first heard the term 25 years ago in the drug culture context, and not just for heroin. "Jonesing" was an almost irrational wanting of something, just like it is today. It's just spread from one sub-culture to a more general usage now, and I think the intesity of meaning has been somewhat diluted.