Added source to log messages

Change-Id: Iacc15ff3514373814ad4f4b3de206d6a83d5338d
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 0e9944d..54dc713 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -52,7 +52,11 @@
 
   // Override KorAP.log
   window.alertify = alertifyClass;
-  KorAP.log = function (code, msg) {
+  KorAP.log = function (code, msg, src) {
+
+    if (src) {
+      msg += '<code class="src">'+src+'</code>';
+    };
 
     // Use alertify to log errors
     alertifyClass.log(