quick fix in js