fix Ivan error in js