added javascript functionality to list views

Added functionality that highlights the correct list item when clicked.