Edit: Some of the material in the Assembling a Frontend Stack posts is outdated. Specifically, I no longer use Bower in any of my projects.
How to organize your Javascript code
Even a marginally sophisticated webapp will have two bundles of Javascript:
* 3rd party code like jQuery or Ember
* your