javascript/textareas.js: minimal fixes for jshint

I've tried to avoid yet another global fix-up of the messed up
white space in the javascript. I've been doing it as I go along.
javascript/xmlcomms.js: more minimal jshint fixes.