in javascript convert number to string array and add "000" to the begining of each number. code example
Example: js num to string with leading 0
String(<number>).padStart(<places>, '0')
String(42).padStart(5, '0'); // '00042'
String(<number>).padStart(<places>, '0')
String(42).padStart(5, '0'); // '00042'