WPP-79 allow for custom javascript before form submit