I agree. This was definitely non-idiomatic JS code, and I'm looking for suggestions on how to do this :) this is basically a function that generates a function that runs an update mechanism based on the button id passed in.