Php Json Javascript Array Length