js fix for event export