neighbors works in js