Load jQuery and add jQuery code
github-pages/jquery.md
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <script src="/demo.js"></script> <div id="text"></div>
github-pages/demo.js
$().ready(function() { $("#text").html("Text added by jQuery code."); });
When you change the JavaScript file, make sure it is reloaded! Browser cashing can cause you a bad day.