Adds some javascript logic to also subit a filter value if one is present.