Dynamically rendered continuous calendar in JavaScript