Fix syntax error in date.js