we don't need no stinking jQuery
rewrie example more idiomatically