Add jQuery on click event handler for search

Just added the click event handler to process metadata record search
requests. Currently, it just parses the data parameter to set if a
record is selected.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>