fixed ng-if problem

Calendar changed to reference an object instead of a string. Fixed bug which occured when calendar visibility was toggled with ng-if.