Call initEvents inside document ready