sample app.js to embed in a standard titanium project