Optimize getText()

Prevent from calling twice the ".textContent" primitive by storing the result in a temporary variable