I have a web page which has a JavaScript defining some data in a form:
var Categories = [etc...
{name:"Cat1 ", caption:escape("Category 1")},
{name:"Cat2 ", caption:escape("Category 2")}
];
var DB = new Object();
DB[Categories[0].name] = [
{name:escape("Item1"), item-num:8}
];