Index: /trunk/FACT++/www/viewer/index.php
===================================================================
--- /trunk/FACT++/www/viewer/index.php	(revision 17739)
+++ /trunk/FACT++/www/viewer/index.php	(revision 17740)
@@ -336,5 +336,5 @@
         $rc['timeJs'][0] = (microtime(true) - $rc['startJs']);
 
-        $JS = "function proc(pixel){\n".$_POST['source1']."\n};proc(".$pixel.");";
+        $JS = "'use strict'; function proc(pixel){\n".$_POST['source1']."\n};proc(".$pixel.");";
         $rc['waveform'] = $v8->executeString($JS, 'proc');
 
@@ -343,5 +343,5 @@
         if (isset($_POST['source2']))
         {
-            $JS = "(function main(){\n".$_POST['source2']."\n})();";
+            $JS = "'use strict'; (function main(){\n".$_POST['source2']."\n})();";
             $rc['ret'] = $v8->executeString($JS, 'main');
         }
