moving forYear function from svg to electionhistory