Added on() method which replaced bind(). off() is removed as on() returns the function to unbind.