Changed name on function updateData to sendData.