use better-dom 2.1
improve demo, refactoring