Text this: Variational approach to dynamics of bright solitons in lossy optical fibers