Experimenting with Ajax calls and JSON.
The application, according to a JSON input, populates the available restaurant types.  The user selects a restaurant type and the application makes an XHR call to the server to take the total number of the restaurants of this type.