Documentation and slight refactoring in translation.progress.js

Change-Id: Ie05221c82d940ade390f31f2f9ca9e04f04d7d1a
Merge "Documentation and slight refactoring in translation.progress.js"