Added jQuery version detection