function ucFirst(str) { var newStr = str.charAt(0).toUpperCase(); for(var i=1; i