initial switch from in-line events in tabs. Included json2html hackily in w2utils to facilitate rendering html without strings