Loop Through Json Array Javascript Push Function In Perl