Simplify examples by using jQuery directly