MBS-5765: Use the same implementation of FormatTrackLength (Perl) in formatTrackLength (JS)