fix in js code