namespace fix in JS XML creation