JQuery extension writeText moved to separate file. Invalid text tag changed to div and inline styles moved to css class.