This is better written as `$( '.playerlist li' ).each( function( ... ) )`. Please also keep CSS class names lower-case.