switch to js_o extension for intermediate files, fix text/string serialization