adding browser console logs to each writeText