While Lyubomyr is implementing server-side logic for querying institutions, you should make it easy to use it from the browser.
So your task is:
Write simple html markup with elements, that will be bound to javascript functionality(use css classes for that)
Write a new controler( in terms of jmvc framework), which will be repsonsible for business logic operations related to institution management and querying. Add a new action to it. This action should be triggered after click on some html element(doesn't really matter which one).
Implement action's logical parts properly :
read parameters from corresponding html elements,
wrap them to specific transport-level-object (here you should colaborate with Lyubomyr)
transfer this object to server along with the request
wait for callback(any error processing should be implemented in corresonding methods e.g onProcessFailed etc)
show the results on page
(follow the existing example)
While Lyubomyr is implementing server-side logic for querying institutions, you should make it easy to use it from the browser. So your task is: