Making publicAPI in javascripts/notifier.js chain-able methods