added neighbors tests for js