Refactor button event handlers to use jQuery's method of passing event
data.

References Coursemology/coursemology.org#277.