Change contentType for form submission from application/javascript to application/json