Update ui.atk4_form.js

Added beforesubmit event in order to allow modify data before it is serialized and sent.