JavaScript: Pad numbers