Added namespace for safe event binding on Document element