Cleaned up participants javascript