	processInput(data.dataReceived.overlayNinja);
			}
		}

        // Function to handle different action types
        function handleAction(payload) {
            if (!payload || !payload.actionType) {
                console.warn("Received an empty or invalid payload:", payload);
                return;
            }

            statusMessage.style.display = 'none'; // Hide status message when an action is received

            switch (payload.actionType) {
                case 'play_media':