jQuery version parity with vanilla javascript version