-several modifications and performance improvement on TextField.js