For my web application, I have a category tree that is stored in a MySQL database. The app retrieves the data through AJAX calls. I am debating whether to construct the tree on the server side or the client side. Should the server return the constructed tree, or just send back the raw database rows? My frontend code is written using backbone.js.