Add support for adding events and selecting DOM elements by id and class name.