Add better-dom library
fixes after code review in better-dom PR
Merge pull request #1173 from chemerisuk/master

Adding better-dom library