small fix in js