various changes related to 1.6 of better-dom