zaalindeling javascript arrays