Add helper functions.

The delegate-base-module needed two helper functions to set events and to get an array of elements from a nodelist to make it crossbrowsing.