Add an action for the form

Add the JS action to the form