Add script to add class to first and last link items. Center links on small screens.