There are many ways to fix, the most popular probably being hiding the div or element that displays your content until it is ready.
I'm guessing #jstree
is a div, if so you would do this:
<div id="jstree" style="display:none;">
then when dom is ready you would unhide it:
$( document ).ready(function() {
$('#jstree').show();
});