function validarRutPromise(textBoxInput) {
var textBox = textBoxInput.value; // the string in the textBoxInput
alert(textBox);
textBox = textBox.toUpperCase();
textBox = textBox.replace(".", "");
textBox = textBox.replace(".", "");
textBox = textBox.replace("-", "");
textBoxInput.value(textBox); --- This line doesnt work!