Javascript Array Foreach Function Example On Graph Where Does The Year Go