Correct error in date generation in header.js