fix compatibility with better-dom 1.6.4, improve code testability
version 1.1.1