Backbone-recursive-toJSON implementation