sigma-visulization.js refactored