I am trying to make a jQuery function dynamically decide which array gets run through it based on a button click. Ideally, this is how it would work: