js to add class to length dropdown