Improving jQuery detection