Call initEvents outside of scope