Replace some usage of jQuery