removed error in js