reducing the use of jQuery