registering of plugins and registering of dom events.