MISC Cleanup
use faster x[y] over y in x, as all hits will be explicitly truth
remove unused toDOM method
Merge pull request #9292 from stefanpenner/cleanup

Cleanup