Adds frontend JS handling for POSTing a manual event to the server.