cleans up JS for and makes JS load all neighbors

@marcomo