Added two events "jsd-open" and "jsd-close".