updated JS_XML and JS_JSON examples