This needs further explanation, ideally a picture showing the effect. I don't really think I've understood what your script did.
Line one
Line two
As:
Line one
owt eniL
To save your eyes the travel distance to the line origin in order to read the next line.
The first line was as normal
reversed was second the then
but only the order of the
the of letters the not words,
words.