Wikipedia’s unsourced response was that it’s just a rendering of an evil laugh with various spellings. Think of the villain from the early silent movies and probably even earlier on stage - any victorious evil laugh, generally somewhat camp in tenor.
I specifically Googled for a Wiki article but could not find anything that made sense to me. Could you share your URL...thanks.