Add js to make priority lists work

Make lists work