javascript helper for polymorphic selector used in ottrick_tickets form