diff --git a/views/app.html b/views/app.html
index 3df8c008c4168f4a406b9dfe81881d78a7203047..dc8d6473d4a6b9c2f73393f6386a901e71cb9d81 100644
--- a/views/app.html
+++ b/views/app.html
@@ -1,5 +1,6 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<!-- $Id$ -->
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 		<meta name="author" lang="en" content="{{=response.author}}" />
@@ -7,16 +8,20 @@
 		<meta name="description" content="{{=response.description}}" />
 		<title>{{=response.title or URL(r=request)}}</title>
 
+		<!-- Load css class -->
 		{{for el in clibs:}}
-		<link rel="stylesheet" type="text/css" href="{{=el}}"/>
-		{{pass}}
-
-		{{for el in jlibs:}}
-		<script type="text/javascript" src="{{=el}}"></script>
-		{{pass}}
-
+		<link rel="stylesheet" type="text/css" href="{{=el}}"/>{{pass}}
+		
+		<!-- define global variable for javascripts -->
+		<script type="text/javascript">
+			AppName = '{{=request.application}}';
+		</script>
 	</head>
 	<body>
+		<!-- the loading indicator -->
+		<!-- load javascript librairies -->
+		{{for el in jlibs:}}
+		<script type="text/javascript" src="{{=el}}"></script>{{pass}}
 	</body>
 </html>