Updated jQuery replacement method based on Codelica's commit:
https://github.com/Codelica/open_framework/commit/b40e4f45212f616344a6b61fa6b9d819fdcc3b8d