removed bad call in js