Stop using jQuery to shrink code