updated maxlength.js