<?php
$exec = "/usr/local/bin/node run.js";
exec($exec, $output);
echo "<!doctype html>\n<html>\n<head></head>\n<body>"
	. "\n<script src='../lib/fin/fin.js'></script>"
	. "\n<script src='lib.js'></script>"
	. "<script>\n" . implode($output, "\n") . "\n</script>\n</body>\n</html>";
?>

<?php
$exec = "/usr/local/bin/node run.js";
exec($exec, $output);
echo "<!doctype html>\n<html>\n<head></head>\n<body>\n<script>\n" . implode($output, "\n") . "\n</script>\n</body>\n</html>";
?>

--- 
+++ 
@@ -1,5 +1,8 @@
 <?php
 $exec = "/usr/local/bin/node run.js";
 exec($exec, $output);
-echo "<!doctype html>\n<html>\n<head></head>\n<body>\n<script>\n" . implode($output, "\n") . "\n</script>\n</body>\n</html>";
+echo "<!doctype html>\n<html>\n<head></head>\n<body>"
+	. "\n<script src='../lib/fin/fin.js'></script>"
+	. "\n<script src='lib.js'></script>"
+	. "<script>\n" . implode($output, "\n") . "\n</script>\n</body>\n</html>";
 ?>
Load fin/jsio on the fun app pages
