js fix for league tables