Improve quote mangling javascript. Move textarea resize hooks into single string.