Uppercase the first character of a string in JavaScript