It's a syntacticle error. Since you missed a close braces ')' here:
html+="<div>" + GetDynamicTextBox*(values[i] + "<div>";
Replace the line with following:
html+="<div>" + GetDynamicTextBox*(values[i] + "<div>");
And also onload you are calling
window.onload=RecreateDynamicTextBoxes;
whereas your function name is
RecreateDynamicTextBox
--Amit