Added JS API to insert an event in the search page + function to launch the search.