For setting up the event binding idiom to your own javascript objects.