Code extracts from the upcoming Apress title, Beginning Backbone