html: send the REST call on form submit
html: send the REST call on form submit

When the form is submitted, intercept the event in the
JavaScript form handler and send the appropriate REST call
using XMLHttpRequest object.

Catch the JSON response in response handler function.

Signed-off-by: Ilija Hadzic <47a09d4a4430975766160361f65fc72633be50b6@gmail.com>

ihadzic/jim,ihadzic/jim,ihadzic/jim