code: function createJsModule(source) {
      var compilerOptions = {
          compilerOptions: {
              target: ts.ScriptTarget.ES5,
              module: ts.ModuleKind.CommonJS,
              alwaysStrict: false
          }
      };
      var transpiled = ts.transpileModule(source, compilerOptions);
      return transpiled.outputText;
  }
docs: Creates commonjs module for javascript
  @param {string} source assemblyscript source
  @returns {string} module string