Javascript Dynamically Create Array Php W3schools