diff --git a/include/evilsedhack b/include/evilsedhack
index 9c33a6e..58c5f46 100755
--- a/include/evilsedhack
+++ b/include/evilsedhack
@@ -2,23 +2,23 @@
PAGE=$1
ROOT=$2
-sed "s,
,,i;/<\/body>/,//d" $PAGE
+sed "s,,
,i;s,]*\)>,
,i;/<\/body>/,//d" $PAGE
cat <<-FOOT
@@ -32,7 +32,7 @@ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
-
+