rename htmlToJs to xmlToJs
complete translation of demo2
tidy code
rename filenames to lower case