init - create xml from js