getting the last_form cookie value and inject jquery function to submit button