Javascript Array Foreach Function Example On Graph Which Is X