Replaced depricated getYear-method to fix incorrect year in IE8 and below.