js global event manager and updating available dates in report datepicker