Php Array Inside Array Javascript Length Method