Better logic for loading jQuery