Listen on document and namespace handler

This is more like what is done in Bootstrap or our repeater.js.