Updates JS to cache jQuery selectors