The reason for using .on('click',...) is to bind to a single
element and refer to many, and to wire in elements that don't exist
yet. As in:
$(document).on('click','a',function (){
console.log('Look at me, I can handle all the anchor clicks...This
code is bound to only one element, instead of every anchor,and any new
anchors will be instantiated with this code acting onthem withno extra work...');
});