Php Array Append Array Javascript Length Of List