Because it was done this way in the same file before.
I can use format, but I don't really understand not using readily available standard js functions for such a trivial task.