title: Pass ViewBag data to requirejs or knockout
body: <p>I'm new to js and now trying to integrate <a href="https://github.com/devbridge/html5-file-uploader" rel="nofollow">HTML5 AJAX File Uploader Module</a> into my ASP.NET MVC project.</p>
  
  <p>In my project, there's a <code>ViewBag.UserID</code>, and in the view I use the script from the module:</p>
  
  <pre><code>&lt;script type="text/javascript" data-main="/scripts/main" src="/Scripts/require.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I suppose I can pass <code>UserID</code> to <code>main.js</code> using the script above, so that I can use something like </p>
  
  <pre><code>var UserID;
  
  html5Upload.initialize({
      // URL that handles uploaded files
      uploadUrl: '/file/upload?Userid=' + UserID,
  
      ...
      });
  </code></pre>
  
  <p>But... how can I do to fulfill that?</p>