Adding 'on' function to core, as per feature request from @lukesnape