Create js for calendar 1

this is the js complete the calendar component,it's small but firsttime i try hard to done with it..