[javascript] Is there a JavaScript function that can pad a string to get to a determined length?