add classes with jquery based on event types