Any regular javascript object can be extended with custom event functionality.