While the number of ways to organize JavaScript is almost infinite, here are some tools that help you build single-page applications.