title: How does Gmail , Twitter, Grooveshark, and those web app built with pure javascript UI prevent people from stealing their code?
body: <p>I am currently considering to build a single page web app using restful api and put the entire UI logic in javascript on the client side. This design concept has been adopted by twitter and several other web apps. </p>
  
  <p>However, I am wondering how to prevent user from stealing my javascript code, since my app logic is all stored in javascript. Does product like gmail, grooveshark, or twitter not care about this issue? do they not care if people can just replicate their app by copy the javascript? if so, does it not bring a lot of risk to the business? </p>
  
  <p>I hope someone can answer my question as I am figuring out how other people are building their app. and if anyone has similar concern on this issue.  </p>