more refactoring, lib, use, pack, js examples
xml.js example working
example js working