Put your code in yourCode_here
function. And prevent HTML without HEAD tag.
(function(head) {_x000D_
var jq = document.createElement('script');_x000D_
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js";_x000D_
((head && head[0]) || document.firstChild).appendChild(jq);_x000D_
})(document.getElementsByTagName('head'));_x000D_
_x000D_
function jQueryReady() {_x000D_
if (window.jQuery) {_x000D_
jQuery.noConflict();_x000D_
yourCode_here(jQuery);_x000D_
} else {_x000D_
setTimeout(jQueryReady, 100);_x000D_
}_x000D_
}_x000D_
_x000D_
jQueryReady();_x000D_
_x000D_
function yourCode_here($) {_x000D_
console.log("OK");_x000D_
$("body").html("<h1>Hello world !</h1>");_x000D_
}
_x000D_