Added detachEvent for methods of datepicker