Update ajax.js

handle textarea as a type