Fix vizhash in JS