<html>
<head>
  <script src="/jsi18n/app1/"></script>
  <script src="/jsi18n/app2/"></script>
<body>
  <p id="app1string">
    <script>
      document.write(gettext('this app1 string is to be translated'))
    </script>
  </p>
  <p id="app2string">
    <script>
      document.write(gettext('this app2 string is to be translated'))
    </script>
  </p>
</body>
</html>