jQuery version parity with vanilla javascript version

– Converted to JS Module pattern