The best way to pad a string in JavaScript