Fixing up javascript so that custom event types will show up in list.