js fix for team modal