JS_dismat support in LDAgibbsviewer(but extremely slow)