Add the filtering javascript and related view.