Assert state of DOM for property changes instead of using jQuery