Add script to avoid submitting form when adding location.