jslint wants a single `var` keyword per function
factor out repeated jQuery() calls into variables