(Another) finite state machine in Backbone.js