init js as array for tab bar too