replaced bindEvents() with ready()