So I decided to save what is in the input box in local storage so that I could possibly make more sense of what I need to do to make this happen.
And this is how I tried to implement it into the JS.
I did notice, however, that I don't have the new LSV mapped to the 'where' parameter like I have the other one, therefore that might explain why it isn't working.