Dealing with integer number leading with 0(s) in JavaScript