Code from the book Instant Ember.js