introduce parameter `check_jquery` to enable skipping the jQuery check