Loop Through Json Array Javascript Length