That's what I would have done in the first place had it not been for the examples given in the existing code. I figured if it's done like using jquery all the time I'm doing the same thing to stay consistent.

Happy to change it though to what I also think is cleaner code.