Fixed development environment for tutorial files

Change-Id: I1b02441b657c001e20230c7637d07c057aba0d26
diff --git a/dev/js/src/app/devel.js b/dev/js/src/app/devel.js
index 73c6f75..9b7a089 100644
--- a/dev/js/src/app/devel.js
+++ b/dev/js/src/app/devel.js
@@ -4,7 +4,7 @@
  */
 
 requirejs.config({
-  baseUrl: 'js/src',
+  baseUrl: '/js/src',
   paths : {
     'lib': '../lib'
   }
diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep
index d69e4d0..83b637d 100644
--- a/templates/layouts/main.html.ep
+++ b/templates/layouts/main.html.ep
@@ -14,7 +14,7 @@
 % end
 
 % if ($c->app->mode eq 'development') {
-    <script data-main="js/src/app/devel" src="js/lib/require.js" async="async"></script>
+    <script data-main="/js/src/app/devel" src="/js/lib/require.js" async="async"></script>
 % } else {
     <script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" async="async"></script>
 % };