Fix for IE bug where picker popup immediately closes after click

I have added a debounce function to the toggleCalendar function so that in all versions of IE, whenever the focus event is fired at the same time as the click event, it will only run the function one time and the date picker window will stay open.