Loop Through Json Array Javascript Length Of A String