diff --git a/notemplate.js b/notemplate.js
index <HASH>..<HASH> 100644
--- a/notemplate.js
+++ b/notemplate.js
@@ -48,7 +48,7 @@ function getWindow(str) {
 	window.setTimeout = function(fun, tt) { fun(); };
 	window.run(jquery);
 	window.setTimeout = tempfun;
-	jqueryPatches(window.jQuery);
+	window.jQuery.ajax = window.jQuery.globalEval = function() {};
 	return window;
 }
 
@@ -70,17 +70,6 @@ function outer($nodes) {
 	return ret;
 }
 
-function jqueryPatches($) {
-	// jQuery monkey-patch
-	$.buildFragmentOrig = $.buildFragment;
-	$.buildFragment = function(args, nodes, scripts) {
-		var r = $.buildFragmentOrig(args, nodes, scripts);
-		// or else script.contentText will be run, this is a security risk
-		if (Array.isArray(scripts)) scripts.length = 0;
-		return r;
-	};
-}
-
 function merge(view, options, callback) {
 	var window = view.window;
 	var $ = window.$;
Disable jQuery ajax and globalEval, prevents some script tags to be prepended to head, or to be eval'd.