I recently recorded some videos from the comfy red chair in our office. Probably some useful things here to learn.
In this one, I give you a heads up on recent DOM APIs with good browser support that were designed to make things easier for you. HTML5
matchesSelector() are explained and demonstrated.