diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php
index e8d8101558a8a33844de223c60a16b60b95eb310..62a2b239d0bd5b32f6b3eb5584450918039858a3 100644
--- a/htdocs/ecm/index.php
+++ b/htdocs/ecm/index.php
@@ -293,11 +293,6 @@ if (GETPOST("action") == 'refreshmanual')
 /*******************************************************************
  * View
  ********************************************************************/
-/*
-$morejs=array(
-"/includes/jquery/plugins/layout/jquery.layout-latest.js"
-);
-*/
 
 //print "xx".$_SESSION["dol_screenheight"];
 $maxheightwin=(isset($_SESSION["dol_screenheight"]) && $_SESSION["dol_screenheight"] > 500)?($_SESSION["dol_screenheight"]-166):660;
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index a56759da8944944e9d4c28145d930953ce5724c0..6e510b273486f8a0750610919e1094582f39738b 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -894,7 +894,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
 			foreach($arrayofjs as $jsfile)
 			{
 				if (! preg_match('/^\//',$jsfile)) $jsfile='/'.$jsfile;	// For backward compatibility
-				print '<script type="text/javascript" src="'.DOL_URL_ROOT.$jsfile.'"></script>'."\n";
+				print '<script type="text/javascript" src="'.$jsfile.'"></script>'."\n";
 			}
 		}