Calendar functionality in Angular JS