Remove flushThis call.
Removed checkTeamLeader check since we remove that element server-side now.
Changed docstring to signify change.
Removed superfluous variable.
Don't return unused variable.
Re-worked the changeTableData function for better performance and more readability.
Removed debug statement.