wait for document to load before changing year to avoid 'undefined' type