separate javascript to events.js.coffee
fix event model spec