Testing javascript year function