How events work in backbone.js