Added .xml~ to .gitignore. Fixed javascript tests. Improved javascript code.