I use Browserify to work with modules (require) in JS. But when I render an element in a js file and want to hang an event on it(onclick), the following error appears 

`Uncaught TypeError: Cannot set property 'onclick' of undefined`

How to hang an event on an element that appears in the DOM later?