Add Javascript trigger for form submissions on the page