title: What happens to JavaScript code after app is compiled using Titanium Mobile
body: <p>I installed Titanium from appcelerator and built the "KitchenSink" example application.</p>
  
  <p>All works well, I'm just wondering where does the javascript code ends up in a built app.</p>
  
  <p>I grep-ed the Xcode project and also the result application as I found it in <code>Library/Application Support/iPhone Simulator/....KitchenSink.app</code>, but I can't find any function names from <code>.js</code> files, not even string texts used within the application.</p>
  
  <p>Nearest information I found is an answer here : <a href="https://stackoverflow.com/questions/2444001/how-does-appcelerator-titanium-mobile-work">How Does Appcelerator Titanium Mobile Work?</a> but I  do not understand clearly how the process works.</p>
  
  <p>Is the javascript code being compiled into a binary code (what compiler is used then?), or is it just transformed in some special data-format and interpreted in a running application ?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>This is what I can see in a build/android directory of KitchenSink:</p>
  
  <pre><code>michal:bin mac$ find . -name table_view_layout\*
  ./assets/Resources/examples/table_view_layout.js
  ./assets/Resources/examples/table_view_layout_2.js
  ./assets/Resources/examples/table_view_layout_3.js
  ./assets/Resources/examples/table_view_layout_4.js
  ./assets/Resources/examples/table_view_layout_5.js
  ./classes/org/appcelerator/generated/examples/table_view_layout.class
  ./classes/org/appcelerator/generated/examples/table_view_layout_2.class
  ./classes/org/appcelerator/generated/examples/table_view_layout_3.class
  ./classes/org/appcelerator/generated/examples/table_view_layout_4.class
  ./classes/org/appcelerator/generated/examples/table_view_layout_5.class
  michal:bin mac$ unzip -t app.apk | grep table_view_layout
      testing: assets/Resources/examples/table_view_layout.js   OK
      testing: assets/Resources/examples/table_view_layout_2.js   OK
      testing: assets/Resources/examples/table_view_layout_3.js   OK
      testing: assets/Resources/examples/table_view_layout_4.js   OK
      testing: assets/Resources/examples/table_view_layout_5.js   OK
  </code></pre>
  
  <p>I didn't look into app.apk before, all I could see were these class files corresponding to each of the javascript files. Therefore I assumed that on Android javascript is being compiled for JVM. Why can't these be found in app.apk ?</p>