Bug fix in JS

Bug fix in JS JSON