Serialize a Backbone.View in to a JavaScript object