In the examples, jquery files (js and css) are loaded from internet(cdn), so you can reach them when goes offline.
You can copy them to your sever, and change links refer to them.
B4X:
//download jquery-latest.min.js to your hard disk,move it to static file folder (www)
// change the line which refers to jquery in your html files, e.g.:
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
//to your local server folder
<script src="/jquery-latest.min.js" type="text/javascript"></script>
Many jquery (js and css) versions are available, your can try 1.9+, not sure if there is any problem with jquery 2.x .