fix in JS