Before reading this post, you should check this package by Eugene Manuilov which is probably the simplest solution for most cases. As he said in the comments:
Hace poco más de un mes se celebró la Software Craftsmanship Barcelona, donde estuvimos con Néstor Salceda hablando de nuestra evolución en el mundillo Javascript frontend este último par de años.