Rewrote calender in Jquery