Use the google distance matrix api with a button in a form, using just javascript