Ajax form submit for works