convert ui.js ".click(fn" calls to ".on('click', fn"

Relating to tangentlabs/django-oscar#1039