JavaScript: Bare-Bones Selector Engine