Reducing some duplicated code in filtering.js. Last attempt to appease code climate.
Reducing some duplicated code in filtering.js. Last attempt to appease code climate.

ScottKolo/suitesparse-matrix-collection-website,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/UFSMC-Web,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/UFSMC-Web,ScottKolo/UFSMC-Web