Fixing some JS and AJAX problems

* A broken JS function related to multiple selections in the list was breaking the AJAX calld in almost every other page.
* The AJAX handler for restart was missing in result view.