A simple calendar in javascript