improve TextField.js performances